	<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--项目简介内容管理页面-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link href="css/style2.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="js/jquery.js"></script>

    <script type="text/javascript">
        $(document).ready(function () {

            //编辑按钮提示框
            /*
            $(".modifytip").click(function () {
                $(".tip").fadeIn(200);
            });
*/
            $(".tiptop a").click(function () {
                $(".tip").fadeOut(200);
            });

            $(".sure").click(function () {
                $(".tip").fadeOut(100);
            });

            $(".cancel").click(function () {
                $(".tip").fadeOut(100);
            });

            //取消按钮提示框
            $(".deletetip").click(function () {
                $(".delete").fadeIn(200);
            });

            $(".tiptop a").click(function () {
                $(".delete").fadeOut(200);
            });

            $(".sure").click(function () {
                $(".delete").fadeOut(100);
            });

            $(".cancel").click(function () {
                $(".delete").fadeOut(100);
            });
        });

    </script>


</head>


<body>

<div class="rightinfo">

    <div class="tools">

        <ul class="toolbar">
            <li>
                <a href="Center_Index_toProjectAddItem">
                    <span>
                        <img src="images/t01.png"/>
                        </span>添加
                </a>
            </li>
        </ul>


    </div>


    <table class="tablelist">
        <thead>
        <tr>
            <th>编号<i class="sort"><img src="images/px.gif"/></i></th>
            <th>标题</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>

       			<s:iterator value="pageBean.recordlist" status="indexs">
					<tr>
						<td>${indexs.index+1}</td>
						<td>${title }</td>
						<td><a href="Center_Index_toProjectEdit?id=${id }" class="modifytip">编辑</a>
							&nbsp;&nbsp;&nbsp;&nbsp; 
							<a href="Center_Index_toProjectDelect?id=${id }" class="deletetip">删除</a></td>
					</tr>
				</s:iterator>
        </tbody>
    </table>


<div class="pagin">
 <div class="message">共<i class="blue"><s:property value="pageBean.recordCount" /></i>条记录，当前显示第&nbsp;<i class="blue">
 <s:if test="pageBean.currentPage == 0"></s:if><s:else>
   <s:property value="pageBean.currentPage" />
                    </s:else>
					&nbsp;</i>页</div>
                <ul class="paginList">
                    <!-- 首页键 -->
                    <li class="paginItem">
                        <s:if test="pageBean.pageCount <= 1">
                            <a aria-label="Previous">
                                <span aria-hidden="true">首页</span>
                            </a>
                        </s:if>
                        <s:else>
                            <a href="Center_Index_toItemManagement?pageNum=1" aria-label="Previous">
                                <span aria-hidden="true">首页</span>
                            </a>
                        </s:else>
                    </li>
                    <!-- 上页键 -->
                    <li class="paginItem">
                        <s:if test="pageBean.currentPage-1 > 0">
                            <a href="Center_Index_toItemManagement?pageNum=${pageBean.currentPage-1 }" href="#" aria-label="Previous">
                                <span aria-hidden="true">&laquo;</span>
                            </a>
                        </s:if>
                        <s:else>
                            <a aria-label="Previous">
                                <span aria-hidden="true">&laquo;</span>
                            </a>
                        </s:else>
                    </li>
                    <!-- 分页键 -->
                    <s:iterator begin="pageBean.beginPageIndex" end="pageBean.endPageIndex" var="pageNums">
                        <c:if test="${pageBean.currentPage == pageNums }">
                            <li><a>${pageNums }</a></li>
                        </c:if>
                        <c:if test="${pageBean.currentPage != pageNums }">
                            <li><a href="Center_Index_toItemManagement?pageNum=${pageNums }">${pageNums }</a></li>
                        </c:if>
                    </s:iterator>
                    <!-- 下页键 -->
                    <li class="paginItem">
                        <s:if test="pageBean.currentPage+1<=pageBean.pageCount">
                            <a href="Center_Index_toItemManagement?pageNum=${pageBean.currentPage+1 }" aria-label="Next">
                                <span aria-hidden="true">&raquo;</span>
                            </a>
                        </s:if>
                        <s:else>
                            <a href="#" aria-label="Next">
                                <span aria-hidden="true">&raquo;</span>
                            </a>
                        </s:else>
                    </li>
                    <!-- 尾页键 -->
                    <li class="paginItem">
                        <s:if test="pageBean.pageCount<=1">
                            <a aria-label="Previous">
                                <span aria-hidden="true">尾页</span>
                            </a>
                        </s:if>
                        <s:else>
                            <a href="Center_Index_toItemManagement?pageNum=${pageBean.pageCount }" aria-label="Previous">
                                <span aria-hidden="true">尾页</span>
                            </a>
                        </s:else>
                    </li>
                </ul>
            </div>

    <div class="tip">
        <div class="tiptop"><span>提示信息</span><a></a></div>
        <div class="tipinfo">
            <span><img src="images/ticon.png"/></span>
            <div class="tipright">
                <p>是否确认对信息的修改 ？</p>
                <cite>如果是请点击确定按钮 ，否则请点取消。</cite>
            </div>
        </div>
        <div class="tipbtn">
            <input name="" type="button" class="sure" value="确定"/>&nbsp;
            <input name="" type="button" class="cancel" value="取消"/>
        </div>
    </div>

    <div class="delete">
        <div class="tiptop"><span>提示信息</span><a></a></div>
        <div class="tipinfo">
            <span><img src="images/ticon_delete.png"/></span>
            <div class="tipright">
                <p>是否确认删除 ？</p>
                <cite>如果是请点击确定按钮 ，否则请点取消。</cite>
            </div>
        </div>
        <div class="tipbtn">
            <input name="" type="button" class="sure" value="确定"/>&nbsp;
            <input name="" type="button" class="cancel" value="取消"/>
        </div>
    </div>

</div>

<script type="text/javascript">
    $('.tablelist tbody tr:odd').addClass('odd');
</script>
</body>
</html>
